package com.mystudentlink.pages.admin.main;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mystudentlink.pages.login.LoginPage;

@SuppressWarnings("serial")
public class AdminMainPage extends WebPage{
	
	static Logger logger = LoggerFactory.getLogger(AdminMainPage.class);
	
	public AdminMainPage() throws Exception {
		super();
		
		logger.debug("logging from MyStudentLinkDemo");
		init();
	}
	
	private void init() throws Exception {
		Link loginPage = new Link("loginPage"){
			public void onClick() {
				setResponsePage(new LoginPage());
			}
		};
		add(loginPage);
	}
	
	protected void onSubmit() {
		setResponsePage(LoginPage.class);
	}


}
